package org.example.demo3_yilai.before;

public class Client {
    public static void main(String[] args) {
        HandaCar handaCar = new HandaCar();
        FordCar fordCar = new FordCar();
        AutoSystem autoSystem = new AutoSystem();
        autoSystem.setHandaCar(handaCar);
        autoSystem.setFordCar(fordCar);
        autoSystem.runCar();
        autoSystem.turnCar();
        autoSystem.stopCar();
    }
}
